package com.xbongbong.paas.factory;

import com.xbongbong.paas.constant.PaasConstant;
import com.xbongbong.paas.abstracts.AbstractLowCodeExecuteService;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author 吴峰
 * @date 2021/03/18 10:39
 */
public class LowCodeExecuteServiceFactory {

    public static final Map<String, AbstractLowCodeExecuteService> LOW_CODE_EXECUTE_SERVICE = new ConcurrentHashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);

    /**
     * 工厂
     * @param alias
     * @return
     */
    public static AbstractLowCodeExecuteService getServiceExecute(String alias) {

        return LOW_CODE_EXECUTE_SERVICE.get(alias);
    }
}
